From 7bb535215d69a9858781af4bbf85e8c4148cb814 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Tue, 6 Jun 2006 19:09:33 +0000 Subject: [PATCH] do not rely on a tempfile tool --- ChangeLog | 5 +++++ docs/Makefile.am | 2 +- docs/tools/xml_insert.sh | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 09aa391..a13d25f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-06 Øyvind Kolås + + * docs/Makefile.am: redirect the check for tempfile to /dev/null + * docs/tools/xml_insert.sh: Add tempfile workaround here as well. + 2006-06-06 Øyvind Kolås * docs/Makefile.am: Do not rely that a command calle tempfile exists. diff --git a/docs/Makefile.am b/docs/Makefile.am index becd722..1f693e3 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -48,7 +48,7 @@ index.html: index-static.html \ Makefile.am echo -n "HTML: $@" cp $< $@ - (which tempfile && TMPFILE=`tempfile` || TMPFILE="/tmp/babl_build_tempfile" ;\ + (which tempfile > /dev/null&& TMPFILE=`tempfile` || TMPFILE="/tmp/babl_build_tempfile" ;\ export BABL_PATH="$(top_builddir)/extensions"; $(top_builddir)/tests/babl_html_dump > $$TMPFILE;\ $(top_srcdir)/docs/tools/xml_insert.sh $@ BablBase $$TMPFILE;\ rm -f $$TMPFILE ) diff --git a/docs/tools/xml_insert.sh b/docs/tools/xml_insert.sh index f53a8c4..139bd15 100755 --- a/docs/tools/xml_insert.sh +++ b/docs/tools/xml_insert.sh @@ -11,7 +11,7 @@ # # FIXME: add argument checking / error handling -TMP_FILE=`tempfile` +which tempfile > /dev/null && TMP_FILE=`tempfile` || TMP_FILE="/tmp/temp_file" cp $1 $TMP_FILE -- 2.30.2